package healththink

class TelephoneNumber{
    String number
    PhoneType phoneType

    //this is a phone number for a facility or a user
    static belongsTo = [User, Facility]

    static constraints = {
        number(size:7..64, nullable:true)
        phoneType(nullable:true)
    }
}

enum PhoneType{
    Fax("Fax"),
    Home("Home"),
    Work("Work"),
    Cell("Cell")

    final String value

    PhoneType(String value)
    {
            this.value=value
    }
}